[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function joystickAx - read joystick input Ax
Syntax unsigned joystickAx(void);
Prototype in ibm.h
Remarks reads the joystick input Ax.
Return value returns the joystick input Ax.
See also isgameport(), joystickAy(), joystickBx(),
joystickBy(), joysticksettings()
Example #include <ibm.h>
main()
{
while (inkey(FALSE) == 0) {
printf("Joystick Inputs\n");
printf("A: (%u,%u)\n",joystickAx(),
joystickAy());
printf("B: (%u,%u)\n",joystickBx(),
joystickBy());
}
}
Program output continuously polls joystick inputs and displays
their values until a key is pressed.
See Also:
isgameport()
joystickAy()
joystickBx()
joystickBy()
joysticksettings()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson